{volist name="tree" id="list"}
<tr>
	<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$list.id}"></td>
	<td>{$list['id']}</td>
	<td>
		{:cat_empty_deal($list, $tree[$key+1]['pid'])}
		<a href="#" class="editable editable-click" data-id="{$list['id']}" data-name="{$list['title']}" data-type="text" data-pk="{$list['id']}" data-url="{:U('edit')}">{$list['title']}</a>
		<a class="add-sub-cate" title="添加子分类" href="{:U('add?pid='.$list['id'])}">
			<i class="fa fa-plus-square"></i>
		</a>
	</td>
	<td><a href="#" class="editable editable-click">{$list['sort']}</a></td>
	<td>{$list['allow_publish']?'是':'否'}</td>
	<td>
		<a title="编辑" href="{:U('edit?id='.$list['id'].'&pid='.$list['pid'])}">编辑</a>
		<a title="{$list.status|show_status_op}" href="{:U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']))}" class="ajax-get">{$list.status|show_status_op}</a>
		<a title="删除" href="{:U('remove?id='.$list['id'])}" class="confirm ajax-get">删除</a>
		<a title="移动" href="{:U('operate?type=move&from='.$list['id'])}">移动</a>
		<a title="合并" href="{:U('operate?type=merge&from='.$list['id'])}">合并</a>
	</td>
</tr>
{notempty name="list['_child']"}
	{:R('Category/tree', array($list['_child']))}
{/notempty}
{/volist}